import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
	  zichanDatas: [],
	  user_id:''
  },
  mutations: {
	  setZichanDatas(state, datas){
		  state.zichanDatas = datas;
	  },
	  set(state,id){
		  state.user_id=id;
	  }
  },
  actions: {
	  addAsync(context, param){
		  context.commit('setZichanDatas', param);
	  }
  },
  modules: {
  }
})
